import {fromJS} from 'immutable'
import {RECEIVE_SHARE_DATA} from '../../../store/actionTypes'
//使用immutable来防止state数据被改变，
const defaultState = fromJS({
    ShareList:[]
});
export default (state = defaultState,action) =>{
    if(action.type === RECEIVE_SHARE_DATA){
        //console.log(action);
        return state.set('ShareList',fromJS(action.data));
    }
    return state;
}